package com.ftg.learn.chapter03;

/**
 * 宠物之家
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/5/13 14:07
 */

public class LearnPetFamily {

    public static String salePet(PetEnum pet){
        return "编号为:"+pet.getId()+"名字叫:"+pet.getName()+"种类:m"+pet.getType();
    }

    public static void main(String[] args) {

        System.out.println("买小猫");
        String s=salePet(PetEnum.pet1001);
        System.out.println(s);
    }


}
